package a8;

import java.util.Scanner;

public class RootCalculator {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		
		System.out.println("Insert number");
		int a = input.nextInt();
		
		System.out.println("Margin of error");
		double epsilon = input.nextDouble();
		
		RootApproximator approx = new RootApproximator(a, epsilon);
		while(approx.hasMoreGuesses())
			System.out.println(approx.nextGuess());

	}

}
